<?
include_once "global.php";

// $_link = str_replace(".php","",basename(__FILE__));
$_link = "projects";
$_fe = $db->query1("select * from node where folderid = 0 and folder = 1 and link = ".$db->sqlstring($_link));

permission_require($_fe,4);

array_unshift($incdirs,"$ssincdir/site");
array_unshift($incdirs,"$incdir/site");

$params["folder"] = $_fe["id"];
$module = "projects2";

$fname = "main/index.php";
if (strstr($fname,"/")) {
	list($dname,$fname) = explode("/",$fname,2);
	$GLOBALS["skinurl"] = "{$GLOBALS["topurl"]}/skins/$dname";
	$GLOBALS["skindir"] = "{$GLOBALS["topdir"]}/skins/$dname";
	}
skin_param("fname",$fname);

include $topdir."/_redir.php";
?>